/**
 * 定义ra中面板
 * name属性没有指定
 */
Ext.define('Risk.view.RAPanel', {
    extend: 'Ext.form.Panel',
    alias: 'widget.rapanel',
    layout:  {
        type: 'table',
        // The total column count must be specified here
        columns: 2
    },
    isLoad:false,
    buttonAlign:'center',
    autoShow: true,
    url:'ra/addorupdate.do',
    initComponent: function() {
      //初始化Window中的内容
    	this.items = [
    	          {
    	        	 margin:'5 10 5 5',
    	        	 height:245,
    			     xtype: 'adfieldSet'
    			  },
    			  {
    				  margin:'5 10 5 5',
    				  height:245,
    			      xtype: 'cdfieldSet'
    			  },
    			  {
    				  margin:'5 10 5 5',
    				  height:180,
    			       xtype: 'pafieldSet'
    			   },
    			   {
    				   margin:'5 10 5 5',
    				   height:180,
    			       xtype: 'rafieldSet'
    			   },
    			   {
    				   margin:'5 10 5 5',
    				   height:240,
    				   xtype: 'ltfieldSet'
    			   },
    			   {
    				   margin:'5 10 5 5',
    				   height:240,
    				   xtype: 'resultfieldSet'
    			   }
        ];
    	this.buttons= [
						{
							  xtype:'button',
							  text:'计         算',
							  action:'calculate'
						},
						{
							  xtype:'button',
							  margin:'0 0 0 10',
							  text:'保存参数',
							  action:'save'
						}
    	               ];
        this.callParent(arguments);
        
    }
    
});